<template>
  <dv-border-box-13>
    <div class="continar" style="text-align: center; color: white;">
      <div class="header" style="margin-top: 10px;">
        <img src="../../assets/img/titles/zuo.png" alt="">
        <span style="color: aqua;">报警信息</span>
        <img src="../../assets/img/titles/you.png" alt="">

      </div>

      <div class="scoll">
        <vue-seamless-scroll :data="data" :class-option="classOption" class="swiper-wrapper">
          <ul v-for="item in data" :key="item.deviceId">
            <li>

              <span style="color:#9a9b9e; font-size: 14px;"> 设备ID:</span><span style="color:#1890ff ;">{{ item.deviceId
              }}</span>
              <span style="color:#9a9b9e; font-size: 14px;"> 设备名称:</span><span style="color:#fff ;font-size: 15px;">{{ item.deviceName
              }}</span>
              &nbsp;
              <span :style="{ color: item.statusLable === '在线' ? '#29fc29' : 'red' }">{{ item.statusLable }}</span> <br>
              <span style="color:#9a9b9e; font-size: 14px;">经纬度:</span><span style="color: #fff;">{{ item.latitude }}--{{
                item.longitude }}</span><br>
              <img src="../../assets/img/zuo_xuxian.png" alt="">
            </li>
          </ul>
        </vue-seamless-scroll>


      </div>
    </div>
  </dv-border-box-13>
</template>
  
<script>
import vueSeamlessScroll from 'vue-seamless-scroll'
export default {
  components: {
    vueSeamlessScroll
  },
  name: "leftBom",
  props: {
    data: Array
  },
  data() {
    return {
      classOption: {
        step: 0.4, // 数值越大速度滚动越快
        limitMoveNum: 1, // 开始无缝滚动的数据量 this.dataList.length
        hoverStop: true, // 是否开启鼠标悬停stop
        direction: 0, // 0向下 1向上 2向左 3向右
        openWatch: true, // 开启数据实时监控刷新dom
        singleHeight: 43, // 单步运动停止的高度(默认值0是无缝不停止的滚动) direction => 0/1
        singleWidth: 0, // 单步运动停止的宽度(默认值0是无缝不停止的滚动) direction => 2/3
        waitTime: 1000
      },

    }
  }

}
</script>
  
<style scoped >
.continar {
  width: 100%;
  height: 100%;

  overflow: hidden;
  position: relative;

}

li {
  list-style: none;
}

.scoll {
  width: 100%;
  height: 80%;
  overflow: hidden;

}
ul{
  margin-right: 32px;
}

.header {
  width: 100%;
  height: 10%;
  font-size: 16px;

}
</style>